<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="zh">
<head>
<title>请登录</title>
<style>
.posts-pagination {
	text-align: center;
	margin-top: -30px;
	margin-bottom: -15px;
}

.post {
	border-bottom: 1px dotted #ccc;
	margin-bottom: 20px;
}

.post h1 a,.post h3 a {
	text-decoration: none;
	color: #000000;
}

.post-bottom {
	margin-bottom: 10px;
}

.pagination li a {
	margin-left: 5px;
}
</style>
</head>
<body>
	<div class="container">
		<div class="row">
			<div class="posts col-md-8 col-md-offset-2">
				<form class="form-horizontal" role="form" action="/login" method="post">
					<div class="form-group">
						<label for="username" class="col-sm-2 control-label">用户名</label>
						<div class="col-sm-8">
							<input type="text" class="form-control" id="username" name="username"
								placeholder="用户名">
						</div>
					</div>
					<div class="form-group">
						<label for="password" class="col-sm-2 control-label">密码</label>
						<div class="col-sm-8">
							<input type="password" class="form-control" id="password" name="password"
								placeholder="密码">
						</div>
					</div>
					<div class="form-group">
						<label for="captcha" class="col-sm-2 control-label">验证码</label>
						<div class="col-xs-4">
							<input type="text" class="form-control" id="captcha" name="captcha"
								placeholder="验证码">
						</div>
						<img alt="验证码" title="看不清？点我刷新" src="static/captcha.jpg" class="img-rounded" onclick="this.src='static/captcha.jpg'" style="cursor: pointer;">
					</div>
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<div class="checkbox">
								<label> <input type="checkbox"> Remember me
								</label>
							</div>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<button type="submit" class="btn btn-default">Sign in</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</body>
</html>